package c.e.b.h.e.l;

import android.content.Context;
import c.e.b.h.e.k.g;
import c.e.b.h.e.k.t.k;
import java.io.File;

/* compiled from: LogFileManager */
public class b {
    public static final c d = new c(null);
    public final Context a;
    public final b b;
    public a c = d;

    /* compiled from: LogFileManager */
    public interface b {
    }

    /* compiled from: LogFileManager */
    public static final class c implements a {
        public c(a aVar) {
        }

        public void a() {
        }

        public String b() {
            return null;
        }

        public byte[] c() {
            return null;
        }

        public void d() {
        }

        public void e(long j, String str) {
        }
    }

    public b(Context context, b bVar) {
        this.a = context;
        this.b = bVar;
        a(null);
    }

    public final void a(String str) {
        this.c.a();
        this.c = d;
        if (str != null) {
            if (g.i(this.a, "com.crashlytics.CollectCustomLogs", true)) {
                this.c = new e(new File(((k) this.b).a(), c.b.a.a.a.E("crashlytics-userlog-", str, ".temp")), 65536);
                return;
            }
            c.e.b.h.e.b.a.b("Preferences requested no custom logs. Aborting log file creation.");
        }
    }
}
